
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="bjui-pageContent">
    <form action="${ctx}/sys/sysCodeAction/doSave" class="pageForm" data-toggle="validate">
        <input type="hidden" name="op" id="j_dialog_op" value="${param.op}${op}">
        <input type="hidden" name="id" id="j_dialog_id" value="${code.id}">
        <table class="table table-condensed table-hover">
            <tbody>
                <tr>
                    <td colspan="2" align="center" valign="middle"><h4>${title}</h4></td>
                </tr>
                <tr>
                    <td>
                        <label for="codeType" class="control-label x90">码类别：</label>
                          <input class="" id="codeType" type="text" name="codeType" id="j_dialog_account" value="${code.codeType}" data-rule="required;" size="20" />
                    </td>
                    <td>
                        <label for="codeName" class="control-label x90">码名称：</label>
                          <input class="" id="codeName" type="text" name="codeName" id="j_dialog_account" value="${code.codeName}" data-rule="required;codeName;remote[${ctx}/sys/sysCodeAction/doNameValidate?op=${op}&original=${code.codeName}]"  />
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="codeValue" class="control-label x90">码值 ：</label>
                          <input class="" id="codeValue" type="text" name="codeValue" id="j_dialog_account" value="${code.codeValue}" data-rule="required;codeValue;remote[${ctx}/sys/sysCodeAction/doValueValidate?op=${op}&original=${code.codeValue}]" />
                    </td>
                     <td>
                        <label for="j_dialog_seq_idx" class="control-label x90">排序：</label>
                          <input class="" id="seq_idx" type="text" name="seqIdx" id="j_dialog_account" value="${code.seqIdx}" data-rule="required;" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <label for="remark" class="control-label x90">描述：</label>
                        <textarea name="remark" id="remark" rows="5" cols="58">${code.remark}</textarea>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
        <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
    </ul>
</div>